package org.tailor
/**
 * The Trans entity.
 *
 * @author    
 *
 *
 */
class Trans {
    static mapping = {
        table 'trans'
        // version is set to false, because this isn't available by default for legacy databases
        version false
        id generator:'identity', column:'id'
        clientIdClient column:'client_id'
    }
    Long id
    Date orderDate
    Integer transactionNumber
    // Relation
    Client clientIdClient

    static constraints = {
        id(max: 9223372036854775807L)
        orderDate(nullable: true)
        transactionNumber(nullable: true, max: 2147483647)
        clientIdClient()
    }
    String toString() {
        return "${transactionNumber}" 
    }
}
